@isTest
private class TestVerifyDate {
	
    @isTest
    static void testCheckDates1(){
        Date date1 = Date.newInstance(2021, 5, 1);
        Date date2 = Date.newInstance(2021, 5, 20);
        Date date3 = VerifyDate.CheckDates(date1, date2);
        System.assert(date2 == date3);
    }
    
    @isTest
    static void testCheckDates2(){
        Date date1 = Date.newInstance(2021, 5, 1);
        Date date2 = Date.newInstance(2021, 6, 10);
        Date date3 = VerifyDate.CheckDates(date1, date2);
        System.assert(Date.newInstance(2021, 5, 31) == date3);
    }
}